cmake_minimum_required(VERSION 3.25 FATAL_ERROR)

project(
    currentWorkDir
    VERSION 1.0.0
    DESCRIPTION "current work dir"
    LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 23 CACHE STRING "The C++ standard to use")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_executable(currentWorkDir main.cpp)

IF(UNIX)
    message("compiled on UNIX")
    target_compile_definitions(${PROJECT_NAME} PUBLIC LINUX)
ELSEIF(WIN32)
    message("compiled on WIN32")
    target_compile_definitions(${PROJECT_NAME} PUBLIC WIN32)
ENDIF(UNIX)